#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dirent.h>
#include <errno.h>
#include <sys/stat.h>
#include "unistd.h"
#include <zip.h>

#define DBG_SEQ 0
#define LOGI printf
#define LOGD printf
#define LOGE printf

static int root_len = 0;
static char path[ PATH_MAX ];
static struct zip *z = NULL;
int pmkdir(const char *path);
void search_dir ( const char * name );
int unzip_file_pt(const char* unzip_file_in);
int zip_file_pt(const char * zip_file_in,const char * zip_file_out);